<%@ page language="java" import="java.util.* " pageEncoding="UTF-8"%>
<%@page import="com.pigeon.crm.action.CustomAction"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath %>html/~cust/cust/">
<title>jb-aptech毕业设计项目</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../../css/style.css" rel="stylesheet" type="text/css">
<script src="../../script/common.js"></script>
</head>
<body>
<form action="saveUpdate.action" method="post">
<div class="page_title">客户信息管理 > 客户信息</div>
<div class="button_bar">
	<button class="common_button" onclick="help('');">帮助</button>
	<button class="common_button" onclick="to('html/~cust/cust/linkman.jsp');">联系人</button>
	<button class="common_button" onclick="to('html/~cust/cust/activities.jsp');">交往记录</button>
	<button class="common_button" onclick="to('html/~cust/cust/orders.jsp');">历史订单</button>
	
	<button class="common_button" onclick="to('getallCrmCustom.action?no=10&page=1');">返回</button>
	<button class="common_button" type="submit"  onclick="save('dict.jsp');">保存</button>
</div>
<table class="query_form_table">
<c:forEach items="${getuuidCrmCustom }" var="cust" >
	<tr>
		<th>客户编号</th>
		<td>${cust.uuid }</td>
		<th>名称</th>
		<td><input value="${cust.customname }" /><span class="red_star">*</span></td>
	</tr>
	<tr>
		<th>地区</th>
		<td>
			<select>
			<option>请选择...</option>
			<c:forEach items="${dicare }" var="dic" >
				
				<option value="${dic.uuid}"  ${dic.uuid == cust.crmDictionaryByArea.uuid?"selected='true'":""}>${dic.itemvalue}</option>
			</c:forEach>
			</select>
			<span class="red_star">*</span></td>
		<th>客户经理</th>
		<td>
			<select>
				<option>请选择...</option>
				<option selected>${cust.charger}</option>
				<option>旺财</option>
				<option>球球</option>
				<option>孙小美</option>
				<option>周洁轮</option>
			</select><span class="red_star">*</span>
		</td>
	</tr>	
	<tr>
		<th>客户等级</th>
		<td>
			<select>
			<c:forEach items="${DicLevel }" var="dic" >
				
				<option value="${dic.uuid}"  ${dic.uuid == cust.crmDictionaryByCustomlevel.uuid?"selected='true'":""}>${dic.itemvalue}</option>
			</c:forEach>
				
			</select><span class="red_star">*</span>
		</td>
		<th>　</th>
		<td>　</td>
	</tr>
	<tr>
		<th>客户满意度</th>
		<td>
			<select>
			<c:forEach items="${DicSatis }" var="dic" >	
				<option value="${dic.uuid}"  ${dic.uuid == cust.crmDictionaryBySatisfaction.uuid?"selected='true'":""}>${dic.itemvalue}</option>
			</c:forEach>
					</select><span class="red_star">*</span>
		</td>
		<th>客户信用度</th>
		<td>
			<select>
			<c:forEach items="${DicCredit }" var="dic" >	
				<option value="${dic.uuid}"  ${dic.uuid == cust.crmDictionaryByCredit.uuid?"selected='true'":""}>${dic.itemvalue}</option>
			</c:forEach>
					
					</select><span class="red_star">*</span>
		</td>
	</tr>
</table>
<br />
<table class="query_form_table" id="table1">
	<tr>
		<th>地址</th>
		<td><input value="${cust.address }"  /><span class="red_star">*</span>
		</td>
		<th>邮政编码</th>
		<td><input value="${cust.postcode}" name="T1" size="20" /><span class="red_star">*</span></td>
	</tr>
	<tr>
		<th>电话</th>
		<td>
			<input value="${cust.telephone}" name="T4" size="20"  /><span class="red_star">*</span></td>
		<th>传真</th>
		<td>
			<input value="${cust.fax}" name="T5" size="20"  /><span class="red_star">*</span>
		</td>
	</tr>	
	<tr>
		<th>网址</th>
		<td>
			<input value="${cust.website}" name="T6" size="20"  /><span class="red_star">*</span>
		</td>
		<th>　</th>
		<td>　</td>
	</tr>
</table>
<br />
<table class="query_form_table" id="table2">
	<tr>
		<th>营业执照注册号</th>
		<td><input value="${cust.salelicence}" name="T13" size="20" /></td>
		<th>法人</th>
		<td><input value="${cust.fictitiousperson}" name="T3" size="20" /><span class="red_star">*</span>
		</td>
	</tr>
	<tr>
		<th>注册资金（万元）</th>
		<td>
			<input value="${cust.regfinance}" name="T7" size="20" /> </td>
		<th>年营业额</th>
		<td>
			<input value="${cust.yearincome}" name="T8" size="20" />
		</td>
	</tr>	
	<tr>
		<th>开户银行</th>
		<td>
			<input value="${cust.bank }" name="T9" size="20" /><span class="red_star">*</span>
		</td>
		<th>银行帐号</th>
		<td><input value="${cust.bankno }" name="T10" size="20" /><span class="red_star">*</span></td>
	</tr>
	<tr>
		<th>地税登记号</th>
		<td>
			<input value="${cust.localtax}" name="T11" size="20" /></td>
		<th>国税登记号</th>
		<td><input value="${cust.nationtax}" name="T12" size="20" /></td>
	</tr>
</table>

</c:forEach>
</form>
<p>　</p>
</body>
</html>